import QtQuick
import QtQuick3D

Node {
    id: node

    // Resources
    property url textureData: "maps/textureData.png"
    Texture {
        id: playerModel_tex_steve_png_texture
        pivotU: 0.5
        pivotV: 0.5
        positionV: -1
        generateMipmaps: true
        mipFilter: Texture.Linear
        source: node.textureData
    }
    Skin {
        id: skin
        joints: [
            leftLegRoot,
            leftKnee,
            leftfoot
        ]
        inverseBindPoses: [
            Qt.matrix4x4(1, 0, 4.47035e-08, 0.032011, 4.47035e-08, -1.60812e-16, -1, 1.1226e-06, 7.18887e-24, 1, -1.60812e-16, -37.3383, 0, 0, 0, 1),
            Qt.matrix4x4(1, -2.49676e-10, 4.47035e-08, 0.032011, 4.47035e-08, -1.71974e-16, -1, 1.1226e-06, 2.49676e-10, 1, -1.60812e-16, 0.161671, 0, 0, 0, 1),
            Qt.matrix4x4(1, -2.49666e-10, 4.47035e-08, 0.032011, 4.47035e-08, 2.72116e-16, -1, 1.1226e-06, 2.49666e-10, 1, 2.83277e-16, 37.6617, 0, 0, 0, 1)
        ]
    }
    Skin {
        id: skin39
        joints: [
            rightLegRoot,
            rightKnee,
            rightfoot
        ]
        inverseBindPoses: [
            Qt.matrix4x4(1, 0, 4.47035e-08, 0.0826054, 4.47035e-08, -1.60812e-16, -1, 3.69278e-09, 7.18887e-24, 1, -1.60812e-16, -37.3383, 0, 0, 0, 1),
            Qt.matrix4x4(1, -2.49676e-10, 4.47035e-08, 0.0826054, 4.47035e-08, -1.71974e-16, -1, 3.69278e-09, 2.49676e-10, 1, -1.60812e-16, 0.161671, 0, 0, 0, 1),
            Qt.matrix4x4(1, -2.49666e-10, 4.47035e-08, 0.0826054, 4.47035e-08, 2.72116e-16, -1, 3.69278e-09, 2.49666e-10, 1, 2.83277e-16, 37.6617, 0, 0, 0, 1)
        ]
    }
    Skin {
        id: skin42
        joints: [
            leftShoulder_,
            leftElbow,
            leftHand
        ]
        inverseBindPoses: [
            Qt.matrix4x4(1, -6.61744e-24, 5.96046e-08, -0.136589, 5.96046e-08, 2.83277e-16, -1, 1.11303e-06, -1.02672e-23, 1, 2.83277e-16, -31.2149, 0, 0, 0, 1),
            Qt.matrix4x4(1, -1.88416e-15, 5.96046e-08, -0.136589, 5.96046e-08, 2.83277e-16, -1, 1.11303e-06, 1.88416e-15, 1, 2.83277e-16, -0.430603, 0, 0, 0, 1),
            Qt.matrix4x4(1, 1.08947e-10, 4.47035e-08, -0.136589, 4.47035e-08, 5.10192e-16, -1, 1.11506e-06, -1.08947e-10, 1, 5.05322e-16, 36.9644, 0, 0, 0, 1)
        ]
    }
    Skin {
        id: skin45
        joints: [
            rightShoulder_,
            rightElbow,
            rightHand
        ]
        inverseBindPoses: [
            Qt.matrix4x4(1, -6.61744e-24, 5.96046e-08, 0.136589, 5.96046e-08, 2.83277e-16, -1, 1.12931e-06, -1.02672e-23, 1, 2.83277e-16, -31.2149, 0, 0, 0, 1),
            Qt.matrix4x4(1, -1.88416e-15, 5.96046e-08, 0.136589, 5.96046e-08, 2.83277e-16, -1, 1.12931e-06, 1.88416e-15, 1, 2.83277e-16, -0.430603, 0, 0, 0, 1),
            Qt.matrix4x4(1, 1.08947e-10, 5.96046e-08, 0.136589, 5.96046e-08, 7.3386e-16, -1, 1.12931e-06, -1.08947e-10, 1, 7.27366e-16, 36.9644, 0, 0, 0, 1)
        ]
    }
    Skin {
        id: skin48
        joints: [
            ___1,
            ___2,
            ___3,
            ___4,
            ___5,
            ___6,
            ___7,
            ___8,
            ___9,
            ___10,
            ___11,
            chest,
            neck
        ]
        inverseBindPoses: [
            Qt.matrix4x4(1, 0, 0, 0.0320109, 0, 2.83277e-16, 1, 6.02039e-15, 0, -1, 2.83277e-16, -37.4932, 0, 0, 0, 1),
            Qt.matrix4x4(1, 0, 0, 0.0320109, 0, 2.83277e-16, 1, 4.63261e-15, 0, -1, 2.83277e-16, -31.2432, 0, 0, 0, 1),
            Qt.matrix4x4(1, 0, 0, 0.0320109, 0, 2.83277e-16, 1, 3.24483e-15, 0, -1, 2.83277e-16, -24.9932, 0, 0, 0, 1),
            Qt.matrix4x4(1, 0, 0, 0.0320109, 0, 2.83277e-16, 1, 1.85706e-15, 0, -1, 2.83277e-16, -18.7432, 0, 0, 0, 1),
            Qt.matrix4x4(1, 0, 0, 0.0320109, 0, 2.83277e-16, 1, 4.6928e-16, 0, -1, 2.83277e-16, -12.4932, 0, 0, 0, 1),
            Qt.matrix4x4(1, 0, 0, 0.0320109, 0, 2.83277e-16, 1, -9.18499e-16, 0, -1, 2.83277e-16, -6.24316, 0, 0, 0, 1),
            Qt.matrix4x4(1, 0, 0, 0.0320109, 0, 2.83277e-16, 1, -2.30628e-15, 0, -1, 2.83277e-16, 0.00684357, 0, 0, 0, 1),
            Qt.matrix4x4(1, 0, 0, 0.0320109, 0, 2.83277e-16, 1, -3.69406e-15, 0, -1, 2.83277e-16, 6.25684, 0, 0, 0, 1),
            Qt.matrix4x4(1, 0, 0, 0.0320109, 0, 2.83277e-16, 1, -5.08184e-15, 0, -1, 2.83277e-16, 12.5068, 0, 0, 0, 1),
            Qt.matrix4x4(1, 0, 0, 0.0320109, 0, 2.83277e-16, 1, -6.46962e-15, 0, -1, 2.83277e-16, 18.7569, 0, 0, 0, 1),
            Qt.matrix4x4(1, 0, 0, 0.0320109, 0, 2.83277e-16, 1, -7.8574e-15, 0, -1, 2.83277e-16, 25.0069, 0, 0, 0, 1),
            Qt.matrix4x4(1, 0, 0, 0.0320109, 0, 2.83277e-16, 1, -9.24517e-15, 0, -1, 2.83277e-16, 31.2569, 0, 0, 0, 1),
            Qt.matrix4x4(1, 0, 0, 0.0320109, 0, 2.83277e-16, 1, -1.0633e-14, 0, -1, 2.83277e-16, 37.5069, 0, 0, 0, 1)
        ]
    }
    Skin {
        id: skin51
        joints: [
            neck,
            head
        ]
        inverseBindPoses: [
            Qt.matrix4x4(1, 0, 0, 0.0320109, 0, 2.83277e-16, 1, 7.19539e-15, 0, -1, 2.83277e-16, -25.4292, 0, 0, 0, 1),
            Qt.matrix4x4(1, 0, 0, 0.0320109, 0, 2.83277e-16, 1, 1.64427e-15, 0, -1, 2.83277e-16, -0.42923, 0, 0, 0, 1)
        ]
    }

    // Nodes:
    Node {
        id: rootNode
        Node {
            id: player
            Node {
                id: bone
                Node {
                    id: ___1
                    x: -0.03201085329055786
                    y: 75.00679779052734
                    z: 4.600553150376852e-15
                    rotation: Qt.quaternion(0.707107, 0.707107, 0, 0)
                    Node {
                        id: rightLegRoot
                        x: -12.550594329833984
                        y: -4.648276680691054e-15
                        z: 0.16846837103366852
                        rotation: Qt.quaternion(4.37114e-08, 1, 2.23517e-08, 9.77026e-16)
                        Node {
                            id: rightKnee
                            x: 2.411209010233506e-09
                            y: 8.326672684688674e-15
                            z: -37.5
                            Node {
                                id: rightfoot
                                x: 3.8191672047105385e-13
                                y: 1.8004715285954015e-14
                                z: -37.5
                            }
                        }
                    }
                    Node {
                        id: leftLegRoot
                        x: 12.5
                        y: 1.1211681112399674e-06
                        z: 0.16846837103366852
                        rotation: Qt.quaternion(4.37114e-08, 1, 1.97124e-08, 8.61656e-16)
                        Node {
                            id: leftKnee
                            x: 2.411209010233506e-09
                            z: -37.5
                            Node {
                                id: leftfoot
                                x: 3.836930773104541e-13
                                y: 9.60123704174011e-15
                                z: -37.5
                            }
                        }
                    }
                    Node {
                        id: ___2
                        y: 1.3877787807814457e-15
                        z: -6.25
                        Node {
                            id: ___3
                            y: 1.3877787807814457e-15
                            z: -6.25
                            Node {
                                id: ___4
                                y: 1.3877787807814457e-15
                                z: -6.25
                                Node {
                                    id: ___5
                                    y: 1.3877787807814457e-15
                                    z: -6.25
                                    Node {
                                        id: ___6
                                        y: 1.3877787807814457e-15
                                        z: -6.25
                                        Node {
                                            id: ___7
                                            y: 1.3877787807814457e-15
                                            z: -6.25
                                            Node {
                                                id: ___8
                                                y: 1.3877787807814457e-15
                                                z: -6.25
                                                Node {
                                                    id: ___9
                                                    y: 1.3877787807814457e-15
                                                    z: -6.25
                                                    Node {
                                                        id: ___10
                                                        y: 1.3877787807814457e-15
                                                        z: -6.25
                                                        Node {
                                                            id: ___11
                                                            y: 1.3877787807814457e-15
                                                            z: -6.25
                                                            Node {
                                                                id: chest
                                                                y: 1.3877787807814457e-15
                                                                z: -6.25
                                                                Node {
                                                                    id: leftShoulder_
                                                                    x: 37.668601989746094
                                                                    y: 1.1211681112399674e-06
                                                                    z: 0.04186145216226578
                                                                    rotation: Qt.quaternion(4.37114e-08, 1, 2.8856e-08, 1.26133e-15)
                                                                    Node {
                                                                        id: leftElbow
                                                                        y: -7.66053886991358e-15
                                                                        z: -30.78433609008789
                                                                        Node {
                                                                            id: leftHand
                                                                            x: 4.0741099383012624e-09
                                                                            y: 6.061591810766322e-15
                                                                            z: -37.394989013671875
                                                                        }
                                                                    }
                                                                }
                                                                Node {
                                                                    id: rightShoulder_
                                                                    x: -37.60457992553711
                                                                    y: 1.1211681112399674e-06
                                                                    z: 0.04186145216226578
                                                                    rotation: Qt.quaternion(4.37114e-08, 1, 2.8856e-08, 1.26133e-15)
                                                                    Node {
                                                                        id: rightElbow
                                                                        y: -7.66053886991358e-15
                                                                        z: -30.78433609008789
                                                                        Node {
                                                                            id: rightHand
                                                                            x: -4.0739678297541104e-09
                                                                            y: 5.575929376832071e-15
                                                                            z: -37.394989013671875
                                                                        }
                                                                    }
                                                                }
                                                                Node {
                                                                    id: neck
                                                                    y: 1.3877787807814457e-15
                                                                    z: -6.25
                                                                    Node {
                                                                        id: head
                                                                        y: 5.551115123125783e-15
                                                                        z: -25
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            Node {
                id: mesh
                Model {
                    id: leftLeg
                    x: 12.5
                    y: 37.5
                    source: "meshes/leftLeg.mesh"
                    skin: skin
                    materials: ___material
                }
                Model {
                    id: rightLeg
                    x: -12.5
                    y: 37.5
                    source: "meshes/rightLeg.mesh"
                    skin: skin39
                    materials: ___material
                }
                Model {
                    id: leftArm
                    x: 37.5
                    y: 112.5
                    source: "meshes/leftArm.mesh"
                    skin: skin42
                    materials: ___material
                }
                Model {
                    id: rightArm
                    x: -37.5
                    y: 112.5
                    source: "meshes/rightArm.mesh"
                    skin: skin45
                    materials: ___material
                }
                Model {
                    id: body
                    y: 112.49995422363281
                    source: "meshes/body.mesh"
                    skin: skin48
                    materials: ___material
                }
                Model {
                    id: head_2
                    y: 175.43603515625
                    source: "meshes/head_2.mesh"
                    skin: skin51
                    materials: ___material
                }
            }
        }
    }

    Node {
        id: __materialLibrary__

        PrincipledMaterial {
            id: ___material
            objectName: "___material"
            baseColor: "#ffcccccc"
            baseColorMap: playerModel_tex_steve_png_texture
        }
    }

    // Animations:
}
